package com.atguigu.flightservice.service.impl;

import com.atguigu.flightservice.entity.Flight;
import com.atguigu.flightservice.entity.flight.FlightInfo;
import com.atguigu.flightservice.mapper.FlightMapper;
import com.atguigu.flightservice.service.FlightService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lwh
 * @since 2021-10-28
 */
@Service
public class FlightServiceImpl extends ServiceImpl<FlightMapper, Flight> implements FlightService {

    @Override
    public List<FlightInfo> getAllFlight() {

        //先查询出所有的一级分类，然后查询出二级分类，进行遍历赋值

        List<Flight> list = baseMapper.selectList(null);

        return null;
    }
}
